#ifndef ACTIVITY_VIEW_H
#define ACTIVITY_VIEW_H

#include <QDialog>

#include "view_base.h"
#include "result_processor.h"
#include "data_types.h"

namespace Ui {
    class ActivityView;
}

class ActivityDetails;

class ActivityView : public ViewBase, ResultProcessor
{
    Q_OBJECT

public:
    explicit ActivityView(QWidget *parent = 0);
    virtual ~ActivityView();
    virtual void IssueRequest();

    void SetActivity(activity a);

  protected:
    virtual int ProcessRawResult(QByteArray &data);

  public slots:
    void showActivityDetails();

private:
    Ui::ActivityView *ui;

    activity activity_;
    ActivityDetails *activityDetails_;
};

#endif // ACTIVITY_VIEW_H
